<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--><html class="no-js" lang="en"> <!--<![endif]-->

<head>
	<meta charset="utf-8" />
  <meta name="viewport" content="width=device-width" />
  <title>Nicolas Bermond - Web Developper</title>

  <link rel="stylesheet" href="css/normalize.css" />
  <link rel="stylesheet" href="css/foundation.css" />
  <link rel="stylesheet" href="css/style.css" type="text/css" />
 <link href="http://fonts.googleapis.com/css?family=Advent+Pro:200" rel="stylesheet" type="text/css" />
 <link rel="stylesheet" href="js/js/fancybox/source/jquery.fancybox.css" type="text/css" />
<link href="js/js/jQuery-Validation-Engine-master/css/validationEngine.jquery.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/js/jquery.js"></script>
<script src="js/js/function.js" type="text/javascript"></script>
<script src="js/js/galery.js" type="text/javascript"></script>
<script type="text/javascript" src="js/js/fancybox/source/jquery.fancybox.pack.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<script src="js/js/jQuery-Validation-Engine-master/js/languages/jquery.validationEngine-fr.js" type="text/javascript"></script>
<script src="js/js/jQuery-Validation-Engine-master/js/jquery.validationEngine.js" type="text/javascript"></script>

  <script src="js/vendor/custom.modernizr.js"></script>

</head>
<body>

	<!-- Navigation -->
 
  <nav class="top-bar show-for-small">
    <ul class="title-area">
      <!-- Title Area -->
      <li class="name">
        <h1>
          <a href="#"></a>
        </h1>
      </li>
      <li class="toggle-topbar menu-icon"><a href="#"><span>menu</span></a></li>
    </ul>
 
    <section class="top-bar-section">
      <!-- Right Nav Section -->
      <ul class="right">
        <li class="divider"></li>
        <li class="has-dropdown">
          <a href="#">Menu</a>
          <ul class="dropdown">
            <!-- <li><label>Section Name</label></li> -->
           <li class="active"><a href="index.php">Accueil</a></li>
  <li><a href="competences.php">Compétences</a></li>
   <li><a href="formations.php">Formations</a></li>
  <li><a href="experiences.php">Expériences professionnelles</a></li>
  <li><a href="divers.php">Divers</a></li>
   <li><a href="realisations.php">Réalisations</a></li>
          </ul>
 
      </ul>
    </section>
  </nav> 
  <!-- Header -->
 <header class="myhead">
  <div class="row" id="titre">
    <div class="twelve columns">
      <img src="img/arobase.png" alt="logo">
      <h1>Nicolas Bermond - Web Developper</h1>
      
    </div>
  </div>
 </header>

  <!-- Main content -->
  <div class="main">
    <div class="row">
    <div class="small-0 large-3 columns show-on-desktops">
      <ul class="tabs vertical hide-for-small">
  <li class=" menuH active"><a href="index.php">Accueil</a></li>
  <li class="menuH"><a href="competences.php">Compétences</a></li>
  <li class="menuH"><a href="formations.php">Formations</a></li>
  <li class="menuH"><a href="experiences.php">Expériences professionnelles</a></li>
  <li class="menuH"><a href="divers.php">Divers</a></li>
   <li class="menuH"><a href="realisations.php">Réalisations</a></li>
  </ul>
</div>

  <div class="large-8 small-12 columns">
      <p class="contenu">Après avoir travaillé 3 ans chez Datalis en tant que Développeur informatique, j'ai décidé de reprendre mes études pour être ingénieur informatique. Me voilà à ingésup et à la recherche d'un contrat en alternance.</p>
  </div>

<div class="small-12 large-4  columns">

             <p id="info">
               Bermond Nicolas<br />
               15 rue johan strauss<br />
               31400 TOULOUSE<br />
               <span class="cadre">Tél : 06 65 14 04 10</span><br />
               
               mail : <a href="mailto:nicolas.bermond@y-nov.com">nicolas.bermond@y-nov.com
</a><br />
               31 Ans<br />
               permis B et voiture personnelle<br /></p>
                </div>
               <div class="small-12 large-5 columns">

                <div class="section-container auto reseauxSociaux" data-section>
                  <section class="section">
                    <p class="title menuContact"><a href="#">Contact</a></p>
                    <div class="content">
                      <div class="formDialogs">
  <form action="index.php" method="post" id="formulaire">
    <table id="tableForm">
    <tr>
    <td width="30%" align="left">
<label>E-Mail</label>
</td>
<td width="70%" align="left">
<input type="text" size="25" class="validate[required, custom[email]]" name="email" /></td>
</tr>
<tr>
<td width="30%" align="left">
<label>Objet</label></td>
<td width="70%" align="left">
<input name="objet" size="25" class="validate[required]" type="text" /></td></tr>
<tr>
<td width="30%" align="left">
<label>Message</label></td>
<td width="70%" align="left">
<textarea name="message" cols="20" rows="10" class="validate[required]"></textarea></td></tr></table><table><tr>

<td width="100%" align="center">
<input name="envoyer" type="submit" value="Envoyer" class="button round" style="float:left;" /><input name="effacer" type="reset" value="Effacer" class="button round" /></td></tr></table>
</form>
</div>
                     
                    </div>
                  </section>
                  <section class="section ">
                    <p class="title menuContact"><a href="#">Téléchargement</a></p>
                    <div class="content">
                      <p class="download">Télécharger le cv en pdf : <a href="include/cv2013.pdf" target="_blank">CV en pdf</a></p>
                    </div>
                  </section>
                  <section class="section ">
                    <p class="title menuContact"><a href="#">Réseaux sociaux</a></p>
                    <div class="content">
                      <div class="row">
                        <div class="large-4 small-4 columns">
                           <a href="http://www.viadeo.com/profile/00215rpf2bvuuzqy/fr/?readOnly=true" target="_blank"><img src="img/viadeo.jpg" alt="icone viadeo" height="100" width="100"/></a>
                        </div>
                        <div class="large-4 small-4 columns">
                            <a href="http://www.linkedin.com/profile/view?id=115223594&trk=nav_responsive_tab_profile" target="_blank"><img src="img/linked.jpg" alt="icone google +" height="100" width="100" /></a>
                        </div>
                        <div class="large-4 small-4 columns">
                          <a href="https://plus.google.com/u/0/+NicolasBermond31/about" target="_blank"><img src="img/g+.jpg" alt="icone google +" height="100" width="100" /></a>
                         
                        </div>
                     </div>
                    </div>
                  </section>
                </div>
                 
              </div>


  </div>
 
 <div class="formDialog"><img src="img/close-button.png" alt="close button" class="close" />
  <form action="index.php" method="post" id="formulaire">
    <table width="200">
    <tr>
    <td width="30%" align="left">
<label>E-Mail</label>
</td>
<td width="70%" align="left">
<input type="text" size="25" class="validate[required, custom[email]]" name="email" /></td>
</tr>
<tr>
<td width="30%" align="left">
<label>Objet</label></td>
<td width="70%" align="left">
<input name="objet" size="25" class="validate[required]" type="text" /></td></tr>
<tr>
<td width="30%" align="left">
<label>Message</label></td>
<td width="70%" align="left">
<textarea name="message" cols="20" rows="10" class="validate[required]"></textarea></td></tr></table><table id="tableButton"><tr>

<td width="100%" align="center" id="formButton">
<input name="envoyer" type="submit" value="Envoyer" class="button round menuH" style="float:left;" /><input name="effacer" type="reset" value="Effacer" class="button round menuH" /></td></tr></table>
</form>
</div>
  <!-- Footer -->

  <script>
  document.write('<script src=' +
  ('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
  '.js><\/script>')
  </script>  
  <script src="js/foundation.min.js"></script>
  <script>
    $(document).foundation();
  </script>
  <script>
    $(document).ready(function(){
      $('#formulaire').validationEngine();
    });
  </script>
  <?php 
     //----------------------------------------------- 
     //DECLARE LES VARIABLES 
     //----------------------------------------------- 
if (isset($_POST['email']) && isset($_POST['objet']) && isset($_POST['message']))
{
     $destinataire='nicolas.bermond@ingesup.com';
     if (preg_match("#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#", $_POST['email'])){
      $email_expediteur=htmlspecialchars(utf8_encode($_POST['email'])); 
     $email_reply=htmlspecialchars(utf8_encode($_POST['email']));
     }
     
   $sujet=htmlspecialchars(utf8_encode($_POST['objet']));
     $message_texte=htmlspecialchars(utf8_encode($_POST['message'])); 
     $message_html="<html> 
     <head> 
     <title>Titre</title> 
     </head> 
     <body>".utf8_decode($_POST['message'])."</body> 
     </html>"; 

  
     //----------------------------------------------- 
     //GENERE LA FRONTIERE DU MAIL ENTRE TEXTE ET HTML 
     //----------------------------------------------- 

     $frontiere = '-----=' . md5(uniqid(mt_rand())); 

     //----------------------------------------------- 
     //HEADERS DU MAIL 
     //----------------------------------------------- 

     $headers = 'From:  <'.$email_expediteur.'>'."\n"; 
     $headers .= 'Return-Path: <'.$email_reply.'>'."\n"; 
     $headers .= 'MIME-Version: 1.0'."\n"; 
     $headers .= 'Content-Type: multipart/alternative; boundary="'.$frontiere.'"'; 

     //----------------------------------------------- 
     //MESSAGE TEXTE 
     //----------------------------------------------- 
     $message = 'This is a multi-part message in MIME format.'."\n\n"; 

     $message .= '--'.$frontiere."\n"; 
     $message .= 'Content-Type: text/plain; charset="iso-8859-1"'."\n"; 
     $message .= 'Content-Transfer-Encoding: 8bit'."\n\n"; 
     $message .= $message_texte."\n\n"; 

     //----------------------------------------------- 
     //MESSAGE HTML 
     //----------------------------------------------- 
     $message .= '--'.$frontiere."\n";
     $message .= 'Content-Type: text/html; charset="iso-8859-1"'."\n"; 
     $message .= 'Content-Transfer-Encoding: 8bit'."\n\n"; 
     $message .= $message_html."\n\n"; 

     $message .= '--'.$frontiere."\n"; 

     if(mail($destinataire,$sujet,$message,$headers)) 
     {?>
     
      <div class="reponse" id="envoye"><img src="include/images/close-button.png" alt="close button" class="close" />E-mail bien envoyé</div><?php

      header('Location: index.php'); 
     } 
     else 
     { ?>
     <div class="reponse" id="nonenvoye"><img src="include/images/close-button.png" alt="close button" class="close" />E-mail non envoyé</div><?php
     header('Location: index.php'); 
          //$_SESSION['reponse']=0;
     } 
   }
?>
</body>
</html>
